package cn.passlink.www.Controller;
import cn.passlink.www.Server.HotTopServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Map;

@RestController
@Slf4j
@RequestMapping("/hot")
public class HotTopDaoController {

    @Resource
    private HotTopServer hotTopServer;
    //获取热点
    @GetMapping("/getList")
    public Map<String, Object> getList(){

        return hotTopServer.getAll();

    }


}
